package com.ruoyi.mapper.jpjs.costsummary;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CostSummaryMapper {

    //根据条件查询成本汇总
    List<Map<String, Object>> findCostSummaryAll(Map<String, Object> map);

    //根据条件查询成本汇总月份
    List<Map<String, Object>> findCostSummaryMonthAll(Map<String, Object> map);

    //新增成本汇总
    int addCostSummary(List<Map<String, Object>> list);

    //修改成本汇总
    int editCostSummary(List<Map<String, Object>> list);

    //新增成本汇总月份
    int addCostSummaryMonth(List<Map<String, Object>> list);

    //修改成本汇总月份
    int editCostSummaryMonth(List<Map<String, Object>> list);

    //删除成本汇总
    int deleteCostSummary(String summaryId);

    //删除成本汇总月份
    int deleteCostSummaryMonth(String summaryMonthId);

    //添加成本汇总查询
    List<Map<String, Object>> addFindCostSummaryAll(Map<String, Object> map);

    //查询月份是否存在数据
    int readOnly(Map<String, Object> map);

    //添加成本汇总查询
    Map<String, Object> findMaxDate(@Param("companyId") String companyId, @Param("proId") String proId, @Param("buildingId") String buildingId);

    //根据楼栋号查询年月
    List<Map<String, Object>> findDate(Map<String, Object> map);

    int deleteCopySummary(Map<String, Object> map);

    int deleteCopySummaryMonth(Map<String, Object> map);

    int addCopySummary(Map<String, Object> map);

    int addCopySummaryMonth(Map<String, Object> map);

    List<Map<String, Object>> findCurrentUnivalent(Map<String, Object> map);

    List<Map<String, Object>> exportCost(Map<String, Object> map);

    List<Map<String, Object>> exportBuilding(Map<String, Object> map);

    int deleteImportCostSummary(Map<String, Object> map);

    int addImportCostSummary(List<Map<String, Object>> list);

    String findMaxYear(Map<String, Object> map);

    String findMaxMonth(Map<String, Object> map);
}
